package com.zhouxiaoge.logs.config.swagger2;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.LinkedHashMap;
import java.util.Map;

@ConfigurationProperties("swagger2")
public class Swagger2Properties {

    private String url;

    private Map<String, GroupInfo> groups = new LinkedHashMap<>();

    public Map<String, GroupInfo> getGroups() {
        return groups;
    }

    public void setGroups(Map<String, GroupInfo> groups) {
        this.groups = groups;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public static class GroupInfo {

        private String basePackage;

        private String title;

        private String description;

        public String getBasePackage() {
            return basePackage;
        }

        public void setBasePackage(String basePackage) {
            this.basePackage = basePackage;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }
    }

}
